package com.zkthink.ceres.applet.reimbursements.domain.entry;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**

@Author cmz
@Date 2024-05-12 16:21
*/
/**
    * 报销表
    */
@Data
@TableName(value = "reimbursements")
public class Reimbursements {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 报销名称
     */
    @TableField(value = "expense_name")
    private String expenseName;

    /**
     * 报销金额
     */
    @TableField(value = "expense_amount")
    private BigDecimal expenseAmount;

    /**
     * 报销内容
     */
    @TableField(value = "expense_description")
    private String expenseDescription;

    /**
     * 反馈图片(多个地址之间用，拼接)
     */
    @TableField(value = "expense_img")
    private String expenseImg;

    /**
     * 报销状态 0=审核中 1=申请通过 2=申请失败
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 审核人
     */
    @TableField(value = "apply_user")
    private Long applyUser;

    /**
     * 审核不通过拒绝原因
     */
    @TableField(value = "rejection_reason")
    private String rejectionReason;

    /**
     * 逻辑删除 1-删除 0-未删除
     */
    @TableField(value = "is_delete")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    private Long createUser;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    private Long updateUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    public static final String COL_ID = "id";

    public static final String COL_EXPENSE_NAME = "expense_name";

    public static final String COL_EXPENSE_AMOUNT = "expense_amount";

    public static final String COL_EXPENSE_DESCRIPTION = "expense_description";

    public static final String COL_EXPENSE_IMG = "expense_img";

    public static final String COL_STATUS = "status";

    public static final String COL_APPLY_USER = "apply_user";

    public static final String COL_REJECTION_REASON = "rejection_reason";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}